package com.glodon.ggzy.core.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * 
 * 常量工具类
 * @author zhangxj
 * @since jdk1.6
 * @date 2013-6-17
 *
 */
public class Constants {

	public static final int DEFAULT_PAGE_NUM = 1;

	public static int DEFAULT_PAGE_SIZE = 1;

	public static int TOP_N = 10;

	public static String ORGANID;

	/**
	 * 建设工程
	 */
	public static String GGZY_JSGC = "jsgc";

	/**
	 * 政府采购
	 */
	public static String GGZY_ZFCG = "zfcg";

	/**
	 * 产权交易
	 */
	public static String GGZY_CQJY = "cqjy";

	/**
	 * 土地房产
	 */
	public static String GGZY_TDFC = "tdfc";

	/**
	 * 系统类型MAP
	 */
	public static Map<String, Integer> subSystemTypeMap = new HashMap<String, Integer>();

	//四个子系统
	static {
		subSystemTypeMap.put(GGZY_JSGC, new Integer(0));
		subSystemTypeMap.put(GGZY_ZFCG, new Integer(1));
		subSystemTypeMap.put(GGZY_CQJY, new Integer(2));
		subSystemTypeMap.put(GGZY_TDFC, new Integer(3));
	}

	//信息公开变量
	//	招标公告  招标文件答疑	 招标文件修改	中标公示  项目投诉	 投诉处理决定，项目通知，项目延期，招标终止

	public static String XXGK_ZBGG = "zbgg";

	public static String XXGK_ZBWJDY = "zbwjdy";

	public static String XXGK_ZBWJXG = "zbwjxg";

	public static String XXGK_ZBGS = "zbgs";

	public static String XXGK_XMTS = "xmts";

	public static String XXGK_TSCLJD = "tscljd";

	public static String XXGK_XMTZ = "xmtz";

	public static String XXGK_XMYQ = "xmyq";

	public static String XXGK_XMZZ = "xmzz";

	/**
	 * 信息公开流程变量
	 */
	public static Map<String, Integer> xxgkTypeMap = new HashMap<String, Integer>();

	/**
	 * 信息公开类型Map
	 */
	public static Map<String, String> xxgkTypeNameMap = new HashMap<String, String>();

	/**
	 * 政府采购类型Map
	 */
	public static Map<String, String> xxgkZfcgTypeNameMap = new HashMap<String, String>();

	//信息公开流程
	static {
		xxgkTypeMap.put(XXGK_ZBGG, new Integer(0));
		xxgkTypeMap.put(XXGK_ZBWJDY, new Integer(1));
		xxgkTypeMap.put(XXGK_ZBWJXG, new Integer(2));
		xxgkTypeMap.put(XXGK_ZBGS, new Integer(3));
		xxgkTypeMap.put(XXGK_XMTS, new Integer(4));
		xxgkTypeMap.put(XXGK_TSCLJD, new Integer(5));
		xxgkTypeMap.put(XXGK_XMTZ, new Integer(6));
		xxgkTypeMap.put(XXGK_XMYQ, new Integer(7));
		xxgkTypeMap.put(XXGK_XMZZ, new Integer(8));

		//信息公开name
		xxgkTypeNameMap.put(XXGK_ZBGG, "招标公告");
		xxgkTypeNameMap.put(XXGK_ZBWJDY, "招标文件答疑");
		xxgkTypeNameMap.put(XXGK_ZBWJXG, "招标文件修改");
		xxgkTypeNameMap.put(XXGK_ZBGS, "中标公示");
		xxgkTypeNameMap.put(XXGK_XMTS, "项目投诉");
		xxgkTypeNameMap.put(XXGK_TSCLJD, "投诉处理决定");
		xxgkTypeNameMap.put(XXGK_XMTZ, "项目同时");
		xxgkTypeNameMap.put(XXGK_XMYQ, "项目延期");
		xxgkTypeNameMap.put(XXGK_XMZZ, "招标终止");

		//政府采购
		xxgkZfcgTypeNameMap.put(XXGK_ZBGG, "采购公告");
		xxgkZfcgTypeNameMap.put(XXGK_ZBWJDY, "预招标公告");
		xxgkZfcgTypeNameMap.put(XXGK_ZBWJXG, "中标公告");
		xxgkZfcgTypeNameMap.put(XXGK_ZBGS, "更正公告");
	}

	//单点登录系统
	public static String CLIENT_ID = "clientID";

	public static String KEY = "KEY";

	public static String SYSTEM_XIANGLIANG = "systemXiangLiang";

	public static String user_session_key = "user_session_key";

	//参数变量
	public static String TokenAuthRequest = "TokenAuthRequest";

	public static String TokenAuthResponse = "TokenAuthResponse";

	public static String LogoutRequest = "LogoutRequest";

	public static String LogoutResponse = "LogoutResponse";

	public static String RedirectTokenAuth = "redirectTokenAuth";

	public static String REQUEST_Display = "display";

	public static String REDIRECT_ROLE_REG = "redirectRoleReg";

	public static int Person_User = 1;

	public static int Enterprise_User = 2;

	//如果是个人用户跳转页面
	public static String redirect_person_index = "redirect_person_index";

	//退出后返回页面
	public static String LogoutRequestUrl = "logoutRequestUrl";

	public static String LogoutResponseUrl = "logoutResponseUrl";

	//合同类型
	public static String ZF_GYS = "zf_gys";//供应商

	public static String ZF_CGR = "zf_cgr";//采购人

	public static String FWPT_XXGK = "xxgk";//信息公开

	public static String FWPT_ZBGG = "zbgg";//中标公告

	public static String FWPT_ZBGS = "zbgs";//中标公示

	public static String user_session_jg_key = "user_session_jg_key";

	public static String user_session_super_key = "user_session_super_key";

}
